<div class="container">
<form class="form form-search clear " method="get" action="{:request()->url()}" >
	<div class="clear">
		<div class="form-item ">
			<label class="form-label">标题名称：</label>
			<div class="form-input">
				<input type="text" class="input" name="name" value="{:input('name')}"  placeholder="标题名称" autocomplete="off" >
			</div>
		</div>
		</div>
		<div class="form-action">
				<button type="submit" class="btn" id="sub">搜索</button>
				<span style="display: none;" >展开<i></i></span>
		</div>
	</form>

<div class="table">
	<table>
		<thead>
			<tr>
				{if $cate[input('cid')]['mid']!=1}
				<th style="width: 30px;"></th>
				{/if}
				<th style="width: 60px;">编号</th>
				<th>标题</th>
				<th  style="width: 70px;" >栏目</th>
				<th style="width: 120px;" >发布时间</th>
				<th style="width: 120px;" >操作</th>
			</tr>
		</thead>
		<tbody>
			{volist name="list" id="vo"  empty="<tr><td class='td-empty' >没有记录</td></tr>" }
			<tr>
				{if $cate[input('cid')]['mid']!=1}
				<td><input type="checkbox" name="id[]" class="ck" value="{$vo['id']}" /></td>
				{/if}
				<td>{$vo['id']}</td>
				
				<td><a href="{$vo['url']}" target="_blank">{$vo['name']}</a></td>
				<td>{:db_name('cate','id='.$vo['cid'])}</td>
				<td>{:date('Y-m-d H:i',$vo['time_add'])}</td>
				<td>
					<a href="{:url('edit?id='.$vo['id'])}">编辑</a>
					{if $cate[$vo['cid']]['mid']!=1}
					<a href="{:url('dele?id='.$vo['id'])}" class="ajax">删除</a>
					{/if}
				</td>
			</tr>
			 
			{/volist}
		 </tbody>
		 {if $cate[input('cid')]['mid']!=1 && count($list)}
		 <tfoot>
		 	<tr>
		 		<td><label><input type="checkbox" id="ck-all" title="全选"  /></label></td>
		 		<td class="batch">
		 			<a href="{:url('dele')}"  title="删除" >删除</a>
		 		</td>
		 	</tr>
		 </tfoot>
		 {/if}
	</table>
</div>
<div class="page">{$list|raw}</div>
</div>